import { Component } from 'react'
import { View } from '@tarojs/components'
import Taro from '@tarojs/taro'
import BasicInfo from '../personalSituation/BasicInfo'
import './index.less'

export default class Index extends Component {
  
  componentWillMount () { }

  componentDidMount () { }

  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }

  render () {
    const { router } = Taro.getCurrentInstance()
    const { id } = router.params;

    return (
      <View>
        <BasicInfo id={id} onSuccess = {() => {
          Taro.navigateBack()
        }} />
      </View>
    )
  }
}